package gui.view.android.graphics;

import java.awt.Color;

import com.nightpiter.view.graphics.PointF;
import com.nightpiter.view.graphics.abstaractions.AbstractRadialGradient;

public class JavaRadialGradient extends JavaShader implements
		AbstractRadialGradient {

	private Color colorFrom, colorTo;
	private PointF point;
	private float radius;

	public JavaRadialGradient(PointF pointF, float radius, int color0,
			int color1) {
		this.point = pointF;
		this.radius = radius;
		assert (this.radius > 0);
		this.colorFrom = new Color(color0, true);
		this.colorTo = new Color(color1, true);
	}

	public JavaRadialGradient(float x, float y, float radius, int color0,
			int color1) {
		this(new PointF(x, y), radius, color0, color1);
	}

	public Color getColorFrom() {
		return colorFrom;
	}

	public Color getColorTo() {
		return colorTo;
	}

	public PointF getPoint() {
		return point;
	}

}
